<button class="btn btn-success btn-xs" data-toggle="modal" data-target="#contractedCustomerIncomeRecord{{ $id }}">
    收入记录
</button>

<div class="modal fade" id="contractedCustomerIncomeRecord{{ $id }}" tabindex="-1" role="dialog"
     aria-labelledby="contractedCustomerIncomeRecord{{ $id }}" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="font-size: 36px;">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">财务收入记录</h4>
            </div>
            <div class="modal-body">
                <div style="overflow-x:auto;white-space:nowrap;">
                    <table class="table table-hover grid-table">
                        <thead>
                        <tr>
                            <th>事由</th>
                            <th>收款金额</th>
                            <th>备注</th>
                            <th>收款日期</th>
                            <th>审核人</th>
                            <th>审核时间</th>
                        </tr>
                        </thead>
                        <tbody>

                        @if(!is_null($data))
                            @foreach($data as $value)
                                <tr>
                                    <td>{{ $value['income_type']  }}</td>
                                    <td>{{ $value['actual_income_amount']  }}</td>
                                    <td>{{ $value['remark']  }}</td>
                                    <td>{{ $value['income_date']  }}</td>
                                    <td>{{ $value['name']  }}</td>
                                    <td>{{ $value['audit_at']  }}</td>
                                </tr>
                            @endforeach
                        @endif

                        </tbody>
                    </table>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
